{if $choose eq 0}
<div><a href="?mod=markattempt&p=unit">Unit Tests</a></div><br />
<div><a href="?mod=markattempt&p=module">Module Tests</a></div>
<br />
<div><input type="button" name="btn_back" value="Back" onClick="location.href='?mod=htutor'" /></div>
{else}
<div>Student - Attemps Lists</div>
<table width="400" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse;">
	<tr>
		<td width="10">#</td>
    	<td width="10">Student ID</td>
		<td width="10">Test ID</td>		
        <td align="center">Year</td>
		<td align="center">Test Title</td>
		<td align="center">Deadline</td>
		<td align="center">TestStatus</td>
		<td align="center">OverallMark</td>	
		<td align="center">FeedbackStatus</td>			
        <td width="30" align="center"></td>
    </tr>
    {section name="onerecord" loop=$list_students_attemps}
    <tr>
    	<td align="center">{$smarty.section.onerecord.iteration}</td>
        <td>{$list_students_attemps[onerecord].StudentID}</td>
		<td>{$list_students_attemps[onerecord].TestID}</td>
		<td>{$list_students_attemps[onerecord].Year}</td>
		<td>{$list_students_attemps[onerecord].Title}</td>
		<td>{$list_students_attemps[onerecord].Deadline}</td>
		<td>{$list_students_attemps[onerecord].TestStatus}</td>
		<td>{$list_students_attemps[onerecord].OverallMark}</td>
		<td>{$list_students_attemps[onerecord].FeedbackStatus}</td>
        <td><a href="?mod=markattempt&a=editattempt&stuid={$list_students_attemps[onerecord].StudentID}&testid={$list_students_attemps[onerecord].TestID}">Edit</a></td>
    </tr>
    {/section}
</table>
<br />
<div><input type="button" name="btn_back" value="Back" onClick="location.href='?mod=markattempt'" /></div>
{/if}
